<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8" />
  <title>ETPL Spec Runner - use jasmine-1.3.0</title>

  <link rel="stylesheet" type="text/css" href="lib/jasmine-1.3.0/jasmine.css">
  <script src="lib/jasmine-1.3.0/jasmine.js"></script>
  <script src="lib/jasmine-1.3.0/jasmine-html.js"></script>
  <script src="spec/readTextSync.js"></script>
  <script src="etpl/main.js"></script>
  <script src="lib/esl-1.6.6.js"></script>
  <script>
  require.config({
    packages: [
      {name: 'etpl', location: 'etpl'}
    ]
  });
  var eslRequire = require;
  require = function (id) {
    if (id === 'etpl' || id === '../../src/main') return etpl;
    if (id === './readTextSync') return readTextSync;

    return eslRequire.call(this, arguments);
  };
  </script>


  <script src="spec/target.spec.js"></script>
  <script src="spec/variableSubstitution.spec.js"></script>
  <script src="spec/import.spec.js"></script>
  <script src="spec/use.spec.js"></script>
  <script src="spec/for.spec.js"></script>
  <script src="spec/if.spec.js"></script>
  <script src="spec/var.spec.js"></script>
  <script src="spec/filter.spec.js"></script>
  <script src="spec/engine.spec.js"></script>
  <script src="spec/comment.spec.js"></script>

</head>

<body>
  <script>
  eslRequire(['spec/amdplugin'], function () {
    var jasmineEnv = jasmine.getEnv();
    jasmineEnv.updateInterval = 1000;

    var htmlReporter = new jasmine.HtmlReporter();
    jasmineEnv.addReporter(htmlReporter);
    jasmineEnv.specFilter = function (spec) {
        return htmlReporter.specFilter(spec);
    };

    jasmineEnv.execute();
  });

  </script>
</body>
</html>
